<h1 class="list">Aulas</h1>
<div class="table">
<img src="/img/bg-th-left.gif" alt="" class="left" height="7" width="8">
<img src="/img/bg-th-right.gif" alt="" class="right" height="7" width="7">
<table class="listing" cellspacing="0" cellpadding="0">
  <tr>
    <th>Voluntario</th>
    <th>Data</th>
    <th colspan="3">Ação</th>
  </tr>

<% for aula in @aulas %>
  <tr>
    <td><%=h aula.voluntario.nome %></td>
    <td><%=h aula.date %></td>
    <td><%= link_to image_tag("login-icon.gif"), aula %></td>
    <td><%= link_to image_tag("edit-icon.gif"), edit_aula_path(aula) %></td>
    <td><%= link_to image_tag("hr.gif"), aula, :confirm => 'Tem certeza?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />
<% if session["nivel"] != 1 %>
<%= link_to 'Nova', new_aula_path, :class => "button" %>
<% end %>
